<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>日志信息</title>
	<script type="text/javascript">
	<!--
	$(function(){
		$("#logTable").dataTable({
			"bPaginate":true
			,"oLanguage":{
				"sLengthMenu": "每页显示 _MENU_ 条记录",
				"sZeroRecords": "抱歉， 没有找到",
				"sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据",
				"sInfoEmpty": "没有数据",
				"sInfoFiltered": "(从 _MAX_ 条数据中检索)",
				"oPaginate": {
					"sFirst": "首页",
					"sPrevious": "前一页",
					"sNext": "后一页",
					"sLast": "尾页"
				},
				"sZeroRecords": "没有检索到数据"
				,"sSearch": "查找:"
				,"sProcessing": "<img src='${pageContext.request.contextPath}/img/loading.gif' />"
			}
			,"bDestroy":true
			,"bServerSide":true
			,"sAjaxSource":"${pageContext.request.contextPath}/system/getSysLogs.do"
			,"sServerMethod": "POST"
			,"fnServerData": function(sSource,aoData,fnCallback){
				$.post(sSource,aoData,function(data){
					if(true == data.isSuccess){
						fnCallback(data.returnObject);
					}else{
						$("#logTable tbody").html("未找到数据");
					}
				},"json");
			}
			,"bJQueryUI": true,
			"sPaginationType": "full_numbers",
			"sDom": '<""l>t<"F"fp>'
			,"aoColumns":[
            	{"sClass":"center","mDataProp":"moduleName"}
            	,{"sClass":"center","mDataProp":"operateExplain"}
            	,{"sClass":"center","mDataProp":"operateIp"}
            	,{"sClass":"center","mDataProp":"creator"}
            	,{"sClass":"center","mDataProp":"createFormatTime"}
            	/* ,{"sClass":"center","mDataProp":"logId","bSearchable":false,"bStorable":false,"fnRender":function(obj){
            		return "<a class=\"btn btn-mini\">"+obj.aData.logId+"负责人</a>";
            	}} */
			]
		});
		$('select').select2();
	});
	//-->
	</script>
</head>
<body>
	<div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12">
      	<div class="widget-box">
          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
            <h5>日志信息</h5>
          </div>
          <div class="widget-content nopadding">
            <table id="logTable" class="table table-bordered data-table">
              <thead>
                <tr>
                  <th>模块</th>
                  <th>备注</th>
                  <th>操作IP</th>
                  <th>操作人</th>
                  <th>操作时间</th>
                </tr>
              </thead>
              <tbody>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    </div>
</body>
</html>